package yns.springcloud.oakwood.guide.circuitbreaker;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class RestClientCircuitbreaker {
	
	private final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	public String hystrixFallback() {
		return "Server Error";
	}
	
	public String restTemplateFallback(String value) {
		return "restTemplate error! value : " + value;
	}
	
	public String restTemplate2Fallback(String value) {
		return "restTemplate2 error! value : " + value;
	}
	
}
